import request from '@/utils/request'

// 查询出入库流水列表
export function listWarehouserecord(query) {
  return request({
    url: '/business/warehouserecord/list',
    method: 'get',
    params: query
  })
}


export function listWarehouserecordGroup(query) {
  return request({
    url: '/business/warehouserecord/listGroup',
    method: 'get',
    params: query
  })
}


// 查询出入库流水详细
export function getWarehouserecord(id) {
  return request({
    url: '/business/warehouserecord/' + id,
    method: 'get'
  })
}

// 新增出入库流水
export function addWarehouserecord(data) {
  return request({
    url: '/business/warehouserecord',
    method: 'post',
    data: data
  })
}

// 修改出入库流水
export function updateWarehouserecord(data) {
  return request({
    url: '/business/warehouserecord',
    method: 'put',
    data: data
  })
}

// 删除出入库流水
export function delWarehouserecord(id) {
  return request({
    url: '/business/warehouserecord/' + id,
    method: 'delete'
  })
}
